package
{

	import com.sqstudio.common.Sys;
	import com.sqstudio.control.CountController;
	import com.sqstudio.control.DescController;
	import com.sqstudio.control.GridController;
	import com.sqstudio.control.HistoryController;
	import com.sqstudio.control.HolidayController;
	import com.sqstudio.control.StarRmbController;
	import com.sqstudio.control.TopController;
	import com.sqstudio.control.WeatherController;
	import com.sqstudio.control.YiJiController;
	import com.sqstudio.event.CalendarEvent;
	import com.sqstudio.model.Model;
	import com.sqstudio.ui.MainBG;
	
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;

	[SWF(width="540",height="450")]
	public class Main extends Sprite
	{
		public function Main()
		{
			Sys.STAGE = this.stage;
			this.stage.scaleMode = StageScaleMode.NO_SCALE;
			this.stage.align = StageAlign.TOP;
			Model.getInstance().init();
			addChild(new MainBG());//背景 
			new WeatherController();
			new HistoryController();
			new GridController();
			new TopController();
			new HolidayController();
			new YiJiController();
			new DescController();
			new StarRmbController();
			new CountController();
			CalendarEvent.Dispatcher.dispatchEvent(new CalendarEvent(CalendarEvent.DATE_CHANGE));
		}
	}
}